package com.coders.activities;

import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.widget.ImageView;

import com.coders.R;

public class help extends BaseActivity {
	AnimationDrawable mailAnimation1,animation2,animation3;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.help_screen);
		ImageView love = (ImageView) findViewById(R.id.love);
		ImageView balloon=(ImageView)findViewById( R.id.balloon );
		ImageView enemy=(ImageView)findViewById( R.id.enemy );
		love.setImageBitmap(null);
		love.setBackgroundResource(R.anim.love_anim);
		mailAnimation1 = (AnimationDrawable) love.getBackground();
		love.post(new Runnable() {
			public void run() {
				if (mailAnimation1 != null)
					mailAnimation1.start();
			}
		});
		balloon.setImageBitmap(null);
		balloon.setBackgroundResource(R.anim.balloon_anim);
		animation2=(AnimationDrawable)balloon.getBackground();
		balloon.post(new Runnable() {
            public void run() {
                if (animation2 != null)
                    animation2.start();
            }
        });
		enemy.setImageBitmap(null);
		enemy.setBackgroundResource(R.anim.enem_anim);
        animation3=(AnimationDrawable)enemy.getBackground();
        balloon.post(new Runnable() {
            public void run() {
                if (animation3 != null)
                    animation3.start();
            }
        });
		

	}

}